<?php
/*========================================= JooSam =========================================/
/																							/
/	Extention:		JooSam																	/
/	Created by:		Broadcastweb.eu - Paules												/
/	Site:			http://www.broadcastweb.eu												/
/	Email:			support@broadcastweb.eu													/
/	Copyright:		2011 - 2012 (c) Broadcastweb.eu											/
/	License:		CC BY-NC-ND 3.0 ~ http://creativecommons.org/licenses/by-nc-nd/3.0/		/
/	File Version:	0003																	/
/																							/
/========================================== JooSam ========================================*/

// Joomla Work
defined('_JEXEC') or die;
jimport('joomla.application.component.view');

class JooSamViewHelp extends JView{

	public function display($tpl = null){

		// Joomla Error Worker
		if(count($errors = $this->get('Errors'))){
			JError::raiseError(500, implode('<br />', $errors));
			return false;
		}
		$this->addToolbar();
		$this->setDocument();
		parent::display($tpl);
	}

	protected function addToolBar(){
		JToolBarHelper::title(JText::_('COM_JOOSAM_VIEWS_HELP_DOCTITLE'), 'joosam-TitleLogo');
	}

	protected function setDocument(){
		$document = JFactory::getDocument();
		$document->setTitle(JText::_('COM_JOOSAM_VIEWS_HELP_HTMLTITLE'));
	}
}